package com.sun.androidexerciseproject.function.util;

import android.content.Context;

import com.sun.androidexerciseproject.function.app.MyApplication;


/**
 * Created by Administrator on 2016/6/2 0002.
 */

public class TestSingleton {
    private static TestSingleton mSingleton;
    private Context mContext;

    private TestSingleton() {
        mContext = MyApplication.getContext();
    }

    public static TestSingleton getSingleton() {
        synchronized (TestSingleton.class) {
            if (null == mSingleton) {
                mSingleton = new TestSingleton();
            }
            return mSingleton;
        }
    }
}
